﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// FBM退货订单
    /// </summary>
    /// 

    public class FBMReturnOrderDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<FBMReturnOrder> data { get; set; }

    }


    public class FBMReturnOrder
    {

        public string RowId { get; set; }

        public string id { get; set; }
        public string order_hash { get; set; }
        /// <summary>
        /// 店铺id	
        /// </summary>
        public string sid { get; set; }
        /// <summary>
        /// 亚马逊订单id	
        /// </summary>
        public string order_id { get; set; }
        /// <summary>
        /// 订购时间
        /// </summary>
        public string order_date { get; set; }

        /// <summary>
        /// 退货时间
        /// </summary>
        public string return_date { get; set; }
        /// <summary>
        /// 退货状态
        /// </summary>
        public string return_status { get; set; }
        /// <summary>
        /// RMA单号
        /// </summary>
        public string rma_id { get; set; }
        /// <summary>
        /// 标签类型
        /// </summary>
        public string label_type { get; set; }
        /// <summary>
        /// 标签费用
        /// </summary>
        public string label_cost { get; set; }
        /// <summary>
        /// 承运商
        /// </summary>
        public string currency_code { get; set; }
        /// <summary>
        /// 运单号
        /// </summary>
        public string tracking_id { get; set; }
        /// <summary>
        /// 标签支付方
        /// </summary>
        public string label_payer { get; set; }
        /// <summary>
        /// "A-to-Z"标签
        /// </summary>
        private string _a_to_z_claim;
        public string a_to_z_claim
        {
            get { return _a_to_z_claim; }
            set
            {
                if (value == "Y") _a_to_z_claim = "是";
                else if (value == "N") _a_to_z_claim = "否";
                else _a_to_z_claim = value;
            }

        }
        /// <summary>
        /// "Prime"标签
        /// </summary>
        private string _is_prime;
        public string is_prime
        {
            get { return _is_prime; }
            set
            {
                if (value == "Y") _is_prime = "是";
                else if (value == "N") _is_prime = "否";
                else _is_prime = value;
            }

        }
        /// <summary>
        /// asin
        /// </summary>
        public string asin { get; set; }
        /// <summary>
        /// MSKU
        /// </summary>
        public string seller_sku { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string item_name { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public decimal return_quantity { get; set; }
        /// <summary>
        /// 退货原因
        /// </summary>
        public string return_reason { get; set; }
        /// <summary>
        /// 是否符合政策
        /// </summary>
        private string _in_policy;
        public string in_policy
        {
            get { return _in_policy; }
            set
            {
                if (value == "Y") _in_policy = "是";
                else if (value == "N") _in_policy = "否";
                else _in_policy = value;
            }

        }
        /// <summary>
        /// 退货类型
        /// </summary>
        public string return_type { get; set; }
        /// <summary>
        /// 解决方法
        /// </summary>
        public string resolution { get; set; }
        /// <summary>
        /// 发票号码
        /// </summary>
        public string invoice_number { get; set; }
        /// <summary>
        /// 退货送达日期
        /// </summary>
        public string return_delivery_date { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public string order_amount { get; set; }
        /// <summary>
        /// 商品信息--原始数量
        /// </summary>
        public string order_quantity { get; set; }
        /// <summary>
        /// Safe-T索赔原因
        /// </summary>
        public string safet_action_reason { get; set; }
        /// <summary>
        /// Saft-T索赔单号
        /// </summary>
        public string safet_claim_id { get; set; }
        /// <summary>
        /// Saft-T索赔状态
        /// </summary>
        public string safet_claim_state { get; set; }
        /// <summary>
        /// Saft-T索赔时间
        /// </summary>
        public string safet_claim_creation_time { get; set; }
        /// <summary>
        /// Safe-T索赔金额
        /// </summary>
        public string safet_claim_reimbursement_amount { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public string refunded_amount { get; set; }
        /// <summary>
        /// 同步数据时间戳
        /// </summary>
        public string sync_time { get; set; }
        /// <summary>
        /// RMA单号提供者
        /// </summary>
        public string rma_id_provider { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 本地产品sku
        /// </summary>
        public string local_sku { get; set; }
        /// <summary>
        /// 品名
        /// </summary>
        public string local_name { get; set; }
        /// <summary>
        /// 品牌名
        /// </summary>
        public string brand_title { get; set; }
        /// <summary>
        /// 分类
        /// </summary>
        public string category_title_path { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 店铺名
        /// </summary>
        public string seller_name { get; set; }
        /// <summary>
        /// asin地址
        /// </summary>
        public string asin_url { get; set; }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string pic_url { get; set; }


    }
}
